<?php /* Smarty version 2.6.26, created on 2014-10-24 23:07:30
         compiled from index.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'index.html', 22, false),)), $this); ?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<table width="100%">
		<tr>
			<td>bid</td>
			<td>标题</td>
			<td>栏目</td>
			<td>发表时间</td>
			<td>浏览数</td>
			<td>操作</td>
		</tr>
	<?php unset($this->_sections['d']);
$this->_sections['d']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['d']['name'] = 'd';
$this->_sections['d']['show'] = true;
$this->_sections['d']['max'] = $this->_sections['d']['loop'];
$this->_sections['d']['step'] = 1;
$this->_sections['d']['start'] = $this->_sections['d']['step'] > 0 ? 0 : $this->_sections['d']['loop']-1;
if ($this->_sections['d']['show']) {
    $this->_sections['d']['total'] = $this->_sections['d']['loop'];
    if ($this->_sections['d']['total'] == 0)
        $this->_sections['d']['show'] = false;
} else
    $this->_sections['d']['total'] = 0;
if ($this->_sections['d']['show']):

            for ($this->_sections['d']['index'] = $this->_sections['d']['start'], $this->_sections['d']['iteration'] = 1;
                 $this->_sections['d']['iteration'] <= $this->_sections['d']['total'];
                 $this->_sections['d']['index'] += $this->_sections['d']['step'], $this->_sections['d']['iteration']++):
$this->_sections['d']['rownum'] = $this->_sections['d']['iteration'];
$this->_sections['d']['index_prev'] = $this->_sections['d']['index'] - $this->_sections['d']['step'];
$this->_sections['d']['index_next'] = $this->_sections['d']['index'] + $this->_sections['d']['step'];
$this->_sections['d']['first']      = ($this->_sections['d']['iteration'] == 1);
$this->_sections['d']['last']       = ($this->_sections['d']['iteration'] == $this->_sections['d']['total']);
?>
		<tr>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
</td>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['title']; ?>
</td>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['catname']; ?>
</td>
			<td><?php echo ((is_array($_tmp=$this->_tpl_vars['data'][$this->_sections['d']['index']]['addtime'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d') : smarty_modifier_date_format($_tmp, '%Y-%m-%d')); ?>
</td>
			<td><?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['click']; ?>
</td>
			<td class="alist">
				<a href="?m=Admin&c=Blog&a=edit&bid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
">编辑</a> 
				<a href="?m=Admin&c=Blog&a=delete&bid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
" onclick="return confirm('删除后不可恢复')">删除</a> 
				<a href="?m=index&c=index&a=blog&bid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['bid']; ?>
&cid=<?php echo $this->_tpl_vars['data'][$this->_sections['d']['index']]['cid']; ?>
" target="_blank">访问</a>
			</td>
		</tr>
	<?php endfor; endif; ?>
	</table>
	<div class="page">
	<?php echo $this->_tpl_vars['page']; ?>
	
	</div>
	<style>
		.page{
			width: 500px;
			text-align: center;
			margin: 50px auto;
		}
		.page>a{
			padding: 3px 6px;
			margin-right: 6px;
			border: 1px solid #999;
		}
		.page>strong{
			padding: 3px 6px;
			margin-right: 6px;
			background: #394A66;
			border-radius: 1px;
			color: #fff;
		}
		table{
			margin: 0px auto;
			background:url(<?php echo @__VIEW__; ?>
/global/images/default/headerbg.png);
			border-radius: 5px;
			box-shadow: 2px 2px 2px #3D4E67;
			color: #fff;
			text-align: center;
		}
		.alist>a{
			color: #fff;
			text-decoration: none;
		}
		.alist>a:hover{
			text-decoration: underline;
		}
	</style>
</body>
</html>